package com.luhai.shipmentscheck.util;

import android.widget.Toast;

import com.luhai.shipmentscheck.application.MyApplication;


public class ToastUtil {

    public static void showToast(final String msg) {
        if (MyApplication.getAppHandler() != null) {
            MyApplication.getAppHandler().post(new Runnable() {
                @Override
                public void run() {
                    Toast.makeText(MyApplication.getContext(), msg, Toast.LENGTH_SHORT).show();
                }
            });
        }
    }
}
